package com.tongcao.cn.algorithm.designMoel.strategy;

/**
 * @author:tongcao
 * @since:2019/6/20 14:19
 * Description:
 */
public class Client {


    public static void main(String[] args) {
        final Strategy env = new Env(new Add());

        final int ret = env.calculate(11, 22);
        System.out.println("ret = " + ret);

        final Strategy sub = new Env(new Sub());
        System.out.println(sub.calculate(11, 2));

    }
}